package com.itheima.Service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.Bean.Dish;
import com.itheima.Bean.Setmeal;
import com.itheima.dto.SetmealDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {

    @Transactional
    void saveWithDishes(SetmealDto setmealDto);

    @Transactional
    void deleteWithDish(List<Long> ids);



    Page<SetmealDto> findPage(Integer page, Integer pageSize, String name);


    void updateWithDish(SetmealDto setmealDto);
}
